package com.cn.hnust.controller;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.cn.hnust.service.UserService;

@Controller
@RequestMapping("/user")
public class User {
	private static Logger logger = Logger.getLogger(User.class);  
//  private ApplicationContext ac = null;  
    @Resource  
    private UserService userService = null;  
    
    
    @RequestMapping(value = "/find")
	public void find(){
    	com.cn.hnust.pojo.User user = userService.getUserById(1);
    	logger.debug(user.getUser_name());
    	logger.debug(user.getAge());
    }
}
